<?php

namespace App\Models\Invoice;

use App\Traits\UuidTrait;
use Illuminate\Database\Eloquent\Model;

class Subject extends Model
{
    use UuidTrait;

    protected $hidden = [];

    const TABLE = 'invoice_subjects';
    protected $table = self::TABLE;

    const TYPE_CHINA_UMS = 'CHINA_UMS';

    const TYPE_CNS = [
        self::TYPE_CHINA_UMS => '银联商务'
    ];

    public $casts = [
        'parameters' => 'array',
        'enabled' => 'boolean'
    ];

    public $attributes = [
        'parameters' => '[]'
    ];
}
